package com.leaves.leetcode.array.t16_3SumClosest;

import com.google.common.collect.Lists;
import com.leaves.leetcode.UnitTesting;

import java.util.List;

public class T16Main extends UnitTesting<Object[], Integer> {

    Solution solution = new Solution();

    @Override
    protected void generateTestData() {
        testDataList.add(createTestData(new Object[]{new int[]{-1, 2, 1, -4}, 1}, 2));
        testDataList.add(createTestData(new Object[]{new int[]{0, 0, 0}, 1}, 0));
    }

    @Override
    public Integer run(Object[] inputData) {
        int[] nums = (int[]) inputData[0];
        int target = (int) inputData[1];
        return solution.threeSumClosest(nums, target);
    }


}
